#pragma once 

#include <iostream>
#include <cstring>
#include <cerrno>
#include <cstdlib>
#include <unistd.h>
#include <fcntl.h>

void setNonBlock(int fd)
{
    int fl = fcntl(fd, F_GETFL);
    if (fl < 0)
    {
        std::cerr << "fcntl erro : " << strerror(errno) << std::endl;
        return ;
    }

    fcntl(fd, F_SETFL, fl | O_NONBLOCK);
}

void printLog()
{
    std::cout << "printLog ..." << std::endl;
}

void downLoad()
{
    std::cout << "downLoad ..." << std::endl;
}

void execSQL()
{
    std::cout << "execSQL ..." << std::endl;
}